package contoller

import (
	"github.com/gin-contrib/sessions"
	"github.com/gin-gonic/gin"
	"net/http"
)

func Ping(c *gin.Context)  {
	session := sessions.Default(c)
	c.JSON(http.StatusOK, gin.H{
		"msg": "pong",
		"hello": session.Get("hello"),
	})
}
